#include "Common.hpp"
int main()
{
    key_t key = ftok(itemstr.c_str(), itemnum);
    int _shareid = shmget(key, gsize,IPC_EXCL);
    char *_shmaddr = (char *)shmat(_shareid, nullptr, 0);

    int n=1;
    while(n++<10)
    {
        snprintf(_shmaddr,gsize,"I am process A +%d ",n);
        sleep(1);
    }
    return 0;
}